/**
* @Description: WoShop商城
* @Author: wutong
* @Copyright: 武汉一一零七科技有限公司©版权所有
* @Link: www.wo-shop.net
* @Contact: QQ:2487937004
*/
<template>
	<view class="gift-tip">
		<scroll-view class="gift-scroll" scroll-y="true" scroll-with-animation="true" :scroll-top="scrollTop">
			<view v-for="(item, index) in giveGiftList" :key="index">
				<view :id="'gift-msg-' + index" class="gift-tip-content">
					<image class="gift-user-avatar" :src="item.headimgurl"></image>
					<view class="gift-msg">
						<view class="gift-username"><text class="gift-username-text">{{item.username}}</text></view>
						<view class="gift-name"><text class="gift-name-text">送{{item.gift_name}}</text></view>
					</view>
					<image class="gift-image" :src="item.pic"></image>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {

		name: 'giveGift',
		data() {
			return {
				scrollTop: 0,
			}
		},
		props: {
			giveGiftList: {
				type: Array,
				default: () => {
					{}
				}
			},
		},
		mounted() {

		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>
	.gift-tip {
		position: fixed;
		bottom: 850rpx;
		left: 24rpx;
		width: 330rpx;
		height: 400rpx;
		display: flex;
		flex-direction: column;

	}

	.gift-scroll {
		height: 400rpx;
	}

	.gift-tip-content {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		width: 330rpx;
		height: 90rpx;
		background-color: rgba(0, 0, 0, 0.5);
		border-radius: 300rpx;
		margin-bottom: 8rpx;
	}

	.gift-msg {
		width: 150rpx;
		height: 90rpx;
	}

	.gift-username {
		height: 50rpx;
		overflow: hidden;
	}

	.gift-username-text {
		line-height: 50rpx;
		font-size: 28rpx;
		font-weight: bold;
		color: #FFF;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;

	}

	.gift-name {
		height: 40rpx;
	}

	.gift-name-text {
		line-height: 40rpx;
		font-size: 22rpx;
		color: #FFF;
	}

	.gift-user-avatar {
		width: 70rpx;
		height: 70rpx;
		border-radius: 70rpx;
		margin: 10rpx;
	}

	.gift-image {
		width: 70rpx;
		height: 70rpx;
		margin: 10rpx;
	}
</style>
